﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace BasicInformation.Domain
{
    /// <summary>
    /// 仓库管理（Depot）			
    /// </summary>
    public class DepotModel: BaseEntity
    {
        /// <summary>
        /// 仓库id（主键标识）
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增 
        public int DepotId {  get; set; }
        /// <summary>
        /// 仓库编号(自动生成)
        /// </summary>
        public string DepotCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string DepotName { get; set; }
        /// <summary>
        /// 租赁时间
        /// </summary>
        public DateTime LeaseTime {  get; set; }
        /// <summary>
        /// 仓库类型
        /// </summary>
        public int DTypeId {  get; set; }
        /// <summary>
        /// 所属 部门
        /// </summary>
        public int Department_Id {  get; set; }
        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsState {  get; set; }
        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsPreset {  get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string? DepotAddr {  get; set; }
        /// <summary>
        /// 面积
        /// </summary>
        public int DepotArea {  get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string? Contact {  get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Tel { get; set; }
    }
}
